﻿using Clothes.Comment;
using Clothes.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Clothes.IBLL
{
    /// <summary>
    /// 账户业务管理接口
    /// </summary>
    public interface IAccountManager
    {
        /// <summary>
        /// 通过用户名登录
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns>返回用户信息</returns>
        OperResult<CLUser> LoginByUserName(string userName, string password);

        /// <summary>
        /// 通过手机号登录
        /// </summary>
        /// <param name="mobileNumber"></param>
        /// <param name="password"></param>
        /// <returns>返回用户信息</returns>
        OperResult<CLUser> LoginByMobileNumber(string mobileNumber, string password);

        /// <summary>
        /// 注册用户
        /// </summary>
        /// <param name="login">登录信息</param>
        /// <returns></returns>
        OperResult Register(CLLogin login);
    }
}



